package com.surenpi.jenkins.client.workflow;

import com.surenpi.jenkins.client.BaseModel;
import com.surenpi.jenkins.client.JenkinsClient;
import java.sql.Timestamp;
import java.util.List;

public class Stage extends BaseModel {
   int id;
   String name;
   String execNode;
   String status;
   Timestamp startTimeMillis;
   long durationMillis;
   long pauseDurationMillis;
   List<StageFlowNodes> stageFlowNodes;
   private JenkinsClient client;

   public int getId() {
      return this.id;
   }

   public void setId(int id) {
      this.id = id;
   }

   public String getName() {
      return this.name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getExecNode() {
      return this.execNode;
   }

   public void setExecNode(String execNode) {
      this.execNode = execNode;
   }

   public String getStatus() {
      return this.status;
   }

   public void setStatus(String status) {
      this.status = status;
   }

   public Timestamp getStartTimeMillis() {
      return this.startTimeMillis;
   }

   public void setStartTimeMillis(Timestamp startTimeMillis) {
      this.startTimeMillis = startTimeMillis;
   }

   public long getDurationMillis() {
      return this.durationMillis;
   }

   public void setDurationMillis(long durationMillis) {
      this.durationMillis = durationMillis;
   }

   public long getPauseDurationMillis() {
      return this.pauseDurationMillis;
   }

   public void setPauseDurationMillis(long pauseDurationMillis) {
      this.pauseDurationMillis = pauseDurationMillis;
   }

   public List<StageFlowNodes> getStageFlowNodes() {
      return this.stageFlowNodes;
   }

   public void setStageFlowNodes(List<StageFlowNodes> stageFlowNodes) {
      this.stageFlowNodes = stageFlowNodes;
   }

   public String toString() {
      return "Stage [id=" + this.id + ", name=" + this.name + ", execNode=" + this.execNode + ", status=" + this.status + ", startTimeMillis=" + this.startTimeMillis + ", durationMillis=" + this.durationMillis + ", pauseDurationMillis=" + this.pauseDurationMillis + ", stageFlowNodes=" + this.stageFlowNodes + "]";
   }

   public void setClient(JenkinsClient client) {
      this.client = client;
   }

   public JenkinsClient getClient() {
      return this.client;
   }
}
